package com.duanjw.springframework.aop.dao.impl;

import com.duanjw.springframework.aop.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 用户daoImpl
 *
 * @author duanjw
 */
@Repository
public class UserDaoImpl implements UserDao{

    @Autowired
    private UserDaoImpl2 userDaoImpl2;

    public UserDaoImpl(){
        System.out.println("初始化UserDaoImpl");
    }
    @Override
    public void query() {
        System.out.println("UserDaoImpl.query");
    }

    @Override
    public void query(String name) {
        System.out.println("UserDaoImpl.query(String)，name：" + name);
    }
}
